package com.kawaiior.asoulworld.item.armor.asoulTeam;

import com.kawaiior.asoulworld.item.armor.ItemArmorBase;
import net.minecraft.inventory.EntityEquipmentSlot;

public class ItemArmorDianan extends ItemArmorBase {

    public ItemArmorDianan(String name, ArmorMaterial materialIn, int renderIndexIn, EntityEquipmentSlot equipmentSlotIn) {
        super(name, materialIn, renderIndexIn, equipmentSlotIn);
//        MinecraftForge.EVENT_BUS.register(this);
    }

//    @SubscribeEvent(priority = EventPriority.LOWEST)
//    public void playerUsingDianaCharm(LivingHurtEvent event)
//    {
//        World world = event.getEntity().world;
//        if (world.isRemote)
//        {
//            return;
//        }
//        EntityLivingBase hurtOne = event.getEntityLiving();
//        EntityLivingBase attacker = (EntityLivingBase) event.getSource().getTrueSource();
//        if (!(attacker instanceof EntityPlayer))
//        {
//            return;
//        }
//        if (attacker.isPotionActive(ModPotions.AS_OVER_LOAD))
//        {
//            return;
//        }
//        EntityPlayer player = (EntityPlayer)attacker;
//        if (    player.getItemStackFromSlot(EntityEquipmentSlot.HEAD).getItem()== ModItems.DIANA_HELMET &&
//                player.getItemStackFromSlot(EntityEquipmentSlot.CHEST).getItem()==ModItems.DIANA_CHESTPLATE &&
//                player.getItemStackFromSlot(EntityEquipmentSlot.LEGS).getItem()==ModItems.DIANA_LEGGINGS &&
//                player.getItemStackFromSlot(EntityEquipmentSlot.FEET).getItem()==ModItems.DIANA_BOOTS &&
//                player.getHeldItemMainhand().isEmpty())
//        {
//            EntityUtil.ApplyBuff(player, ModPotions.AS_OVER_LOAD,0,10f);
//            world.createExplosion(player,hurtOne.posX,hurtOne.posY,hurtOne.posZ,3,false);
//        }
//    }
}
